package net.ifilm.controller;

import net.ifilm.entity.Film;
import net.ifilm.entity.FilmDiscuss;
import net.ifilm.entity.FilmType;
import net.ifilm.service.FilmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

/**
 * User: <a href="wangjunneil@gmail.com">wangjun</a>
 * Date: 2012-08-11 00:27
 */
@Controller
@RequestMapping("/page")
public class FilmOprController {

    @Autowired
    private FilmService filmService;

    @RequestMapping(value="/searchfilmByShowTime", method= RequestMethod.POST)
    public String searchfilmByShowTime(ModelMap map, HttpServletRequest request) {
    	String showTime = request.getParameter("value");
    	System.out.println("showTime=" + showTime);

        return "/page/video/video_list.jsp";
    }

    @RequestMapping(value="/searchfilmByRegion", method= RequestMethod.POST)
    public String searchfilmByRegion(ModelMap map, HttpServletRequest request) {
    	String region = request.getParameter("value");
    	System.out.println("region=" + region);

        return "/page/video/video_list.jsp";
    }
    
    @RequestMapping(value="/searchfilmByTags", method= RequestMethod.POST)
    public String searchfilmByTags(ModelMap map, HttpServletRequest request) {
    	String tag = request.getParameter("value");
    	System.out.println("tag=" + tag);

        return "/page/video/video_list.jsp";
    }
}
